package com.ibeeking.found.cop.b.rest.controller.v1.feign;

import com.ibeeking.found.cop.b.rest.service.ICopDepartmentService;
import com.ibeeking.found.cop.b.rest.service.ICopEmployeeService;
import com.ibeeking.found.cop.b.rest.service.IKfAccountService;
import com.ibeeking.found.cop.b.rest.service.IKfServicerService;
import com.ibeeking.found.cop.service.common.dto.KfAccountDTO;
import com.ibeeking.found.cop.service.common.dto.KfServicerDTO;
import com.ibeeking.found.cop.service.common.param.CopDepartmentParam;
import com.ibeeking.found.cop.service.common.param.CopEmployeeParam;
import com.ibeeking.nematos.constants.enums.OperateLogTypeEnum;
import com.ibeeking.nematos.log.annotation.Log;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName ContactListFeignController
 * @Description
 * @Author ibeeking
 * @Date 2020-12-01 18:15
 **/

@RestController
@RequestMapping("/b/kf/feign/v1")
public class KfFeignController {

    @Resource
    private IKfAccountService kfAccountServiceImpl;

    @Resource
    private IKfServicerService kfServicerServiceImpl;

    /**
     * 查询主客服账号
     * @return
     */
    @Log(logType = OperateLogTypeEnum.QUERY, describe = "查询主客服账号")
    @PostMapping(value = "/queryDefaultKfAccount")
    public KfAccountDTO queryDefaultKfAccount() {
        return kfAccountServiceImpl.queryDefaultKfAccount();
    }

    /**
     * 查询主客服账号
     * @return
     */
    @Log(logType = OperateLogTypeEnum.QUERY, describe = "查询主客服接待")
    @PostMapping(value = "/queryDefaultKfServicer")
    public KfServicerDTO queryDefaultKfServicer() {
        return kfServicerServiceImpl.queryDefaultKfServicer();
    }
}
